import {http} from "@/service/http";

const prefix = '/Nacos'


/**
 * 系统实例是否启动完成
 * @returns UserInfo
 */
export const checkSystemStartFinish = () => {
  return http({
    method: 'Get',
    url: `${prefix}/CheckSystemStartFinish`,
  })
}

/**
 * nacos 服务下线
 * @returns UserInfo
 */
export const deregisterNacos = () => {
  return http({
    method: 'Get',
    url: `${prefix}/Deregister`,
  })
}


/**
 * nacos getNacosStatus
 * @returns
 */
export const getNacosStatus = () => {
  return http({
    method: 'Get',
    url: `${prefix}/GetStatus`,
  })
}
/**
 * 服务上线
 * @returns onlineNacos
 */
export const onlineNacos = () => {
  return http({
    method: 'Get',
    url: `${prefix}/Register`,
  })
}

